<script>
	import { api } from 'utils/api.js'
	import common from './utils/common.js'
	
	export default {
		onLaunch: function(options) {
		},
		onShow: function(options) {

		 // 	let userInfo_static = {
			// 	account: 1918,
			// 	avatar: "http://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83eoGCeqsTZZZGHUzHGv3AhqhZiaicSGRp0VFfcL8SwjxG8ptc3pWGkg80qQ4SqrwSAPZiaOed1vfNHibCw/132",
			// 	businessName: null,
			// 	commission: 600,
			// 	couponNum: 0,
			// 	freeAssemble: 0,
			// 	id: "76dc0c0a-39c8-4d27-703a-08d7ea85799a",
			// 	integral: 0,
			// 	isAuth: true,
			// 	isBusiness: false,
			// 	isHaveShop: false,
			// 	isRegimental: true,
			// 	isUse: true,
			// 	nickName: "云在天上飘",
			// 	orderNum: 0,
			// 	redPacket: 100,
			// 	shopId: "00000000-0000-0000-0000-000000000000",
			// 	sourceUserId: "20660932-a9dc-433f-3fe8-08d7e60544ec",
			// 	subscribe: 1,
			// 	teamNum: 1,
			// 	token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJCQ0Y4MzlGMjExN0ZDODE5RTVGRTJDRTQwNjYyNjVDQzlCMEMwMUVFRDNBMENENkZFOEE0NjI3MUVCRkMwOTI0OURFQjBFQTY0OEYwOTBBRCIsImlhdCI6IjE1OTA1MDczMzQiLCJuYmYiOiIxNTkwNTA3MzM0IiwiZXhwIjoiMTU5MTExMjEzNCIsImlzcyI6IkFQSSIsImF1ZCI6IlVzZXIiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoi5LqR5Zyo5aSp5LiK6aOYIn0.O_XmIxsDcNHxFOEnoKqwImcLvAI_V9b1vs2AShEd2r8",
			// 	userPhone: "18987422570",
			// 	userSex: 1,
		 //    }
		 // common.setUserInfo(userInfo_static) 
			
			let userInfo = common.getUserInfo()
			// console.log(userInfo)
			console.log('登录状态:' + this.$isLogin())
			console.log('手否绑定手机:' + this.$isBindPhone())
		},
		
		methods:{
		},
		
		onHide: function() {

		}
	}
</script>

<style lang="less">
	/*每个页面公共css */
	@import url("./app.less");

	page {
		font-family: "Microsoft YaHei";
		font-size: 28upx;
		color: @font-base-color;
	}

	.mt0 {
		margin-top: 0 !important;
	}

	.mb0 {
		margin-bottom: 0 !important;
	}

	.pt0 {
		padding-top: 0 !important;
	}

	.pb0 {
		padding-bottom: 0 !important;
	}

	.p0 {
		padding: 0 !important;
	}

	.bbnone {
		border-bottom: none !important;
	}

	.brnone {
		border-right: none !important;
	}

	.text-overflow {
		max-width: 100%;
		box-sizing: border-box;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.flex-base {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.rich-text {
		max-width: 750rpx;
		overflow: hidden;
		img {
			margin: 0 auto;
			display: inline-block;
			max-width: 100%;
			overflow: hidden;
		}
	}

	.bg-line {
		background: linear-gradient(to right, #2783ff, #2bcaff);
	}

	.fw {
		font-weight: bold;
	}

	.yuan:before {
		content: '￥';
		display: inline-block;
		font-size: @font-size-22;
	}

	.interval {
		height: 20upx;
		width: 100%;
		background: @bg-dark-color;
	}

	.content-30 {
		padding: 30upx;
		box-sizing: border-box;
		width: 100%;
	}

	.content-20 {
		padding: 20upx;
		box-sizing: border-box;
		width: 100%;
	}

	.footer-block {
		height: 100upx;
	}

	.placeholder-class {
		font-size: @font-size-24;
		color: @font-dark-color;
	}



	.page-bg {
		position: absolute;
		width: 100%;
		min-height: 100%;
		background: @bg-dark-color;
		left: 0;
		top: 0;
	}

	// 页面底部浮动按钮
	.page-submit {
		height: 90upx;
		width: 100%;
		position: fixed;
		left: 0;
		bottom: 0;
		text-align: center;
		line-height: 90upx;
		color: #fff;
		letter-spacing: 3upx;
		font-size: @font-size-28;
		background: @font-orange-color;
		border: none;
		outline: none;
		border-radius: unset;
	}

	.circular-submit {
		height: 90upx;
		width: 690upx;
		text-align: center;
		line-height: 90upx;
		color: #fff;
		letter-spacing: 3upx;
		font-size: @font-size-30;
		background: @theme-color;
		border: none;
		outline: none;
		border-radius: 100upx;
		margin: 0 auto;
	}

	.circular-default {
		background: #cccccc;
	}

	.circular-tip {
		margin-top: 35upx;
		width: 100%;
		text-align: center;
		color: @theme-color;
	}

	// 空页面样式
	.none {
		background: @bg-dark-color;
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		min-height: 100%;
		.flex-base;
		justify-content: center;
		flex-direction: column;

		.none-icon {
			width: 212upx;
			height: 144upx;
		}

		.none-tips {
			font-size: @font-size-24;
			color: @font-dark-color;
			padding-top: 30upx;
		}
	}
</style>
